<?php

namespace app\controller;

use app\traits\ControllerTrait;

class AdminMenu extends ControllerTrait{
    public function Index(){
        //
    }

    public function MenuList(){
        $menuList = app("adminMenuModel")
            ->field(["id","menu_name","icon","menu_path","html"])
            ->select()
            ->toArray();

        $data = array(
            'msg' => '菜单列表',
            'menuList' => $menuList
        );
        $this->success($data);
    }
}
